<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width,initial-scale=1.0,maximum-scale=1.0,minimum-scale=1.0,user-scalable=no"
    />
    <meta name="apple-touch-fullscreen" content="yes">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <meta name="format-detection" content="telephone=no">
    <title>设置</title>

    <link rel="stylesheet" href="static/css/common.css">
    <link rel="stylesheet" href="static/css/layout.css">

    <link rel="stylesheet" href="static/css/00.css">

    <link href="https://cdn.bootcss.com/animate.css/3.7.0/animate.min.css" rel="stylesheet">

    <style>
        .btn {
            padding: .3rem 1rem;
            background-color: lightseagreen;
            color: white;
            display: block;
            margin: 10px;
        }

        .input_panel_input {
            border: 1px #c0bfc4 solid;
            height: .76rem;
            line-height: .76rem;
            border-radius: .1rem;
            padding: 0px 10px;
            width: 80%;
        }

        .m-validate-slider-nav {
            line-height: 1rem;
            height: 1rem;
            /* background-color: lightblue; */
            border-bottom: 1px #ccc solid;
        }

        .m-validate-slider-nav-each {
            float: left;
            text-align: center;
            line-height: 1rem;
            height: 1rem;
            font-size: .3rem;
            width: 33.333333333%;

        }

        .m-validate-slider-nav-each-text {
            display: inline-block;
            padding: 0rem .3rem;
            height: 1rem;
            line-height: 1rem;

            /* border-bottom: 2px #3F8BF9 solid; */
        }

        .m-validate-slider-nav-each.active .m-validate-slider-nav-each-text {
            color: #3F8BF9;
            border-bottom: 2px #3F8BF9 solid;
        }


        .m-validate-slider-input-wrap {
            display: block;
            line-height: .5rem;
            border-bottom: 1px #ccc solid;
            width: 100%;
            margin-top: .3rem;
            margin-bottom: .1rem;
            height: .6rem;
        }

        .swiper-slide {
            padding: .3rem;
        }

        .validCode_input {
            width: calc(100% - 2rem);
        }

        .m-input-right-btn {
            width: 2rem;
            color: #3F8BF9;
            font-size: .28rem;
            text-align: right;
        }

        .m-validate-slider-container {
            position: absolute;
            top: 2rem;
            left: 10%;
            z-index: 899;
            width: 80%;
            background-color: white;
            border-radius: 5px 5px 0 0;
        }

        .m-mask {
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, .7);
            position: absolute;
            top: 0;
            left: 0;
            opacity: 0.8;
            display: none;
        }

        .animated {
            animate-duration: 0s;
            animate-delay: 0s;
            animate-iteration-count: 0;
        }

        .m-validate-slider-header {
            background-color: #6AA5F5;
            height: 48px;
            line-height: 48px;
            color: white;
            font-size: 16px;
            border-radius: 5px 5px 0 0;
            text-align: center;
        }
    </style>

</head>

<body class="m-body">

    <div class="m-mask"></div>

    <a class="btn btn_01">成功</a>


    <div class="m-validate-slider-container">

        <div class="m-validate-slider-header">
            安全验证
        </div>

        <div class="m-validate-slider-nav">

            <div class="m-validate-slider-nav-each active " data-index="0">
                <div class="m-validate-slider-nav-each-text ">手机验证</div>
            </div>
            <div class="m-validate-slider-nav-each" data-index="1">
                <div class="m-validate-slider-nav-each-text">邮箱验证</div>
            </div>

            <div class="m-validate-slider-nav-each" data-index="2">
                <div class="m-validate-slider-nav-each-text">二次验证</div>
            </div>

        </div>


        <div class="m-validate-slider swiper-container">
            <div class="swiper-wrapper">
                <div class="swiper-slide">

                    <div class="wp_100">
                        <div class="m-validate-slider-input-wrap">
                            <input type="text" class="m-input fl validCode_input" placeholder="请输入验证码" />
                            <span class="m-input-right-btn fr">发送验证码</span>
                        </div>

                        <div class="m-btn-block mt_dot_5_rem  comfirm_one">确认</div>
                    </div>

                </div>
                <div class="swiper-slide">

                    <div class="wp_100">
                        <div class="m-validate-slider-input-wrap">
                            <input type="text" class="m-input fl validCode_input" placeholder="请输入验证码" />
                            <span class="m-input-right-btn fr">发送验证码</span>
                        </div>


                        <div class="m-btn-block mt_dot_5_rem">确认</div>
                    </div>

                </div>
                <div class="swiper-slide">

                    <div class="wp_100">
                        <div class="m-validate-slider-input-wrap">
                            <input type="text" class="m-input" placeholder="请输入验证码" />
                        </div>

                        <div class="m-btn-block mt_dot_5_rem">确认</div>
                    </div>

                </div>
            </div>
        </div>

    </div>




    <script src='static/js/jquery-1.8.2.min.js'></script>
    <script src="static/js/common.js"></script>


    <link rel="stylesheet" href="static/plugins/swiper/swiper.min.css" />
    <script src="static/plugins/swiper/swiper.min.js"></script>

    <link rel="stylesheet" href="static/plugins/layer/mobile/need/layer.css">
    <script src="static/plugins/layer/mobile/layer.js"></script>

    <script type="text/javascript">
        $(function () {



            $(".btn_01").click(function () {

                $(".m-mask").fadeIn("none");

                $(".m-validate-slider-container").addClass('animated slideInUp');
                $(".m-validate-slider-container").show();

            });

            var mySwiper = new Swiper('.m-validate-slider.swiper-container');
            $(".m-validate-slider-container").hide();


            $(".m-validate-slider-nav-each").click(function () {

                $(".m-validate-slider-nav-each ").removeClass('active');
                $(this).addClass('active');

                var index = parseInt($(this).data('index') || 0);

                mySwiper.slideTo(index, 200, false);//切换到第一个slide，速度为1秒
            });

            $(".comfirm_one").click(function () {
                $(".m-mask").fadeOut("none");
                $(".m-validate-slider-container").fadeOut();

            });

            //总遮罩退出弹框 
            $(".m-mask").click(function () {
                $(".m-mask").fadeOut("none");
                $(".m-validate-slider-container").fadeOut();
            });


        });


    </script>
</body>

</html>